import {
    createBrowserRouter,
} from "react-router-dom";
import App from "../App.jsx";
import Edit from "../page/edit.jsx";
import Goods from "../page/goods.jsx";
import Info from "../page/info.jsx";

const routers = createBrowserRouter([
    {
        path: "/",
        element: <App />,

    },
    {
        path: "/goods/*",
        element: <Goods />,
        children:[
            {
                path: "info",
                element: <Info />,
            }
        ]

    },
    {
        path: "/edit/:id",
        element: <Edit />,
    }
])
export default routers